#ifndef TLV_H
#define TLV_H

#ifdef __cplusplus
extern "C" {
#endif

#define IN
#define OUT

int tlv_add(char *buf, int *offset, int t, int l, char *v);
int tlv_get(char *buf, int buf_len, int t, int *l, char **v);


#ifdef __cplusplus
};
#endif

#endif // TLV_H